<template>
	<view class="goods-info-view">
		<!-- 轮播图 -->
		<u-swiper :list="list1" height="260" radius="0"></u-swiper>
		<!-- 内容 -->
		<view class="padding-30">
			<view class="bg-fff border-radius20 padding-30 margin-bottom30">
				<view class="flex-alignItems-center">
					<view style="color: #C90F0F;" class="margin-bottom20 margin-right30">
						<text class="fontSize-15">￥</text>
						<text class="fontSize-30 fontWeight-bold">199</text>
					</view>
					<view>
						<text class="fontSize-13">积分</text>
						<text  style="color: #C90F0F;" class="fontSize-16">1990</text>
					</view>
				</view>
				<view class="fontSize-15 color-704234 margin-bottom20">武当太极13势</view>
				<!-- <view class="flex-flex-warp">
					<view class="goods-info-tag flex-center">10节</view>
				</view> -->
			</view>
			<view class="flex-between bg-fff border-radius20 padding-30 margin-bottom30">
				<view class="fontSize-15 color-704234">可用门店</view>
				<view class="flex-alignItems-center">
					<view class="fontSize-15 color-704234 margin-right20">全国通用</view>
					<u-icon name="arrow-right" color="#666666" size="14"></u-icon>
				</view>
			</view>
			<view class="flex-between bg-fff border-radius20 padding-30 margin-bottom30">
				<view class="fontSize-15 color-704234">课程介绍</view>
			</view>
			<!-- 底部操作栏 -->
			<view class="position-fixed-100bottom" @click="buyShow = true">
				<view class="flex-between bg-fff padding-30">
					<view class="flex-column">
						<view style="color: #C90F0F;" class="margin-bottom10">
							<text class="fontSize-15">￥</text>
							<text class="fontWeight-bold" style="font-size: 20px;">199</text>
						</view>
						<view>
							<text class="fontSize-13">积分</text>
							<text  style="color: #C90F0F;" class="fontSize-16">1990</text>
						</view>
					</view>
					<view class="shop-buys-btn flex-center">立即购买</view>
				</view>
			</view>
		</view>

		<!-- 购买弹窗 -->
		<u-popup :show="buyShow" mode="bottom" round="20" closeable @close="closebuyShow">
			<view class="popup-view">
			    <view style="height: 50rpx;"></view>
				<view class="flex-between margin-bottom30">
					<image class="img-160 margin-right20" src="../../static/image/01.png" mode=""></image>
					<view class="flex1">
						<view class="fontSize-15 color-000 margin-bottom30">武当传统传承太极拳服饰</view>
						<view class="flex-column">
							<view style="color: #C90F0F;" class="margin-bottom10">
								<text class="fontSize-15">￥</text>
								<text class="fontWeight-bold" style="font-size: 20px;">199</text>
							</view>
							<view>
								<text class="fontSize-13">积分</text>
								<text  style="color: #C90F0F;" class="fontSize-16">1990</text>
							</view>
						</view>
					</view>
				</view>
				<view class="margin-bottom30">
					<view class="fontSize-15 color-000 margin-bottom30">颜色</view>
					<view class="flex-flex-warp">
						<view class="sku-item flex-center">白色</view>
						<view class="sku-item flex-center">黑色</view>
						<view class="sku-item flex-center">黄色</view>
					</view>
				</view>
				<view class="margin-bottom30">
					<view class="fontSize-15 color-000 margin-bottom30">颜色</view>
					<view class="flex-flex-warp">
						<view class="sku-item flex-center">白色</view>
						<view class="sku-item flex-center">黑色</view>
						<view class="sku-item flex-center">黄色</view>
					</view>
				</view>
				
				<view class="margin-bottom30 flex-between">
					<view class="fontSize-15 color-000">数量</view>
					<u-number-box v-model="value" @change="valChange"></u-number-box>
				</view>
				<view class="padding-30">
					<view class="btn-967C5E-15ffffff flex-center" @click="$tools.navigateTo('/pages/index/score-list/score-confirm-order')">
						 立即购买
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				],
				buyShow: false,
				value:1
			}
		},
		methods:{
			valChange(e){
				console.log(e)
			},
			closebuyShow(){
				this.buyShow = false
			}
		}
	}
</script>

<style lang="scss" scoped>
	.sku-item{
	    padding: 10rpx 20rpx;
		font-weight: 400;
		font-size: 15px;
		color: #333333;
		background: #FFFFFF;
		border-radius: 35rpx;
		border: 1rpx solid #DBDBDB;
		margin: 0 20rpx 20rpx 0;
	}
	.shop-buys-btn{
		width: 240rpx;
		height: 80rpx;
		font-weight: 400;
		font-size: 30rpx;
		color: #FFFFFF;
		background: #967C5E;
		border-radius: 40rpx 40rpx 40rpx 40rpx;
	}
	.buy-btn{
		width: 100%;
		height: 90rpx;
		background: linear-gradient( 130deg, #E2BF94 0%, #E5C6A0 28%, #E6CDB1 56%, #D1AA79 100%);
	}
	.buy-center-view1{
		width: 380rpx;
		// height: 220rpx;
		background-color: #EFDFCD;
		padding: 30rpx;
	}
	.buy-center{
		// position: relative;
		margin: 30rpx 0;
		width:500rpx;
		height: 260rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	// .buy-center-image{
	// 	width: 100%;
	// 	height: 100%;
	// 	flex-shrink: 0;
	// }
	.popup-view {
		padding: 30rpx;
		background-color: #FFFFFF;
	}

	.goods-info-tag {
		padding: 5rpx 10rpx;
		font-weight: 400;
		font-size: 24rpx;
		color: #947065;
		background: rgba(148, 112, 101, 0.14);
		border-radius: 20rpx;
		border: 1rpx solid #967C5E;
		margin: 0 20rpx 20rpx 0;
	}

	.goods-info-view {
		// background-color: #F5F1E8;
		// min-height: 100vh;
	}
</style>